/*
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-12-13 17:04:37
 * @LastEditors  : cxguo
 * @LastEditTime : 2020-01-04 23:20:58
 */
import SecondMenu from '@/components/SecondMenu'

export default [
  {
    title: '进货',
    path: '/stock',
    component: SecondMenu,
    children: [
      {
        path: 'purchaseorder_list',
        name: 'PurchaseOrderList',
        component: () => import('@/views/purchase/list-in.vue'),
        meta: { title: '进货订单', add: true }
      },
      {
        path: 'purchaseorder_add',
        name: 'PurchaseOrderAdd',
        hidden: true,
        component: () => import('@/views/purchase/detail-in'),
        props: (route) => ({ operation: 'add' }),
        meta: { title: '新增进货订单', add: true }
      },
      {
        path: 'purchaseorder_update',
        name: 'PurchaseOrderUpdate',
        hidden: true,
        component: () => import('@/views/purchase/detail-in'),
        props: (route) => ({ operation: 'update', billId: route.query.billId }),
        meta: { title: '编辑进货订单', add: true }
      },
      {
        path: 'purchase_list',
        name: 'PurchaseList',
        component: () => import('@/views/purchase/list-in.vue'),
        meta: { title: '进货', add: true }
      },
      {
        path: 'purchase_add',
        name: 'PurchaseAdd',
        hidden: true,
        component: () => import('@/views/purchase/detail-in'),
        meta: { title: '进货', add: true }
      },
      {
        path: 'purchasereturn_list',
        name: 'PurchasereturnList',
        component: () => import('@/views/purchase/list-out.vue'),
        meta: { title: '进货退货', add: true }
      },
      {
        path: 'purchasereturn_add',
        name: 'PurchasereturnAdd',
        hidden: true,
        component: () => import('@/views/purchase/detail-out.vue'),
        meta: { title: '新增进货退货' }
      }
    ]
  },
  {
    title: '库存',
    path: '/stock',
    component: SecondMenu,
    children: [
      {
        path: 'sold_list',
        name: 'SaleSoldList',
        component: () => import('@/views/sale/list-sold'),
        meta: { title: '盘点', add: true }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '调拨', add: true }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '组装拆卸', add: true }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '借出', add: true }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '借入', add: true }
      }
    ]
  },
  {
    title: '查询',
    path: '/stock',
    component: SecondMenu,
    children: [
      {
        path: 'stock_list',
        name: 'StockList',
        component: () => import('@/views/stock'),
        meta: { title: '库存查询' }
      },
      {
        path: 'stock_log',
        name: 'StockLog',
        component: () => import('@/views/stock/good-stock-log.vue'),
        meta: { title: '库存流水明细' }
      },
      {
        path: 'bill_track',
        name: 'BillTrack',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '订单跟踪', add: true }
      },
      {
        path: 'return_list',
        name: 'SaleListReturn',
        component: () => import('@/views/sale/list-return'),
        meta: { title: '序列号查询', add: true }
      }
    ]
  }
]
